*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

closing socket '77'. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            2078152
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x013b90da20. 	14.1.2022 	15:53:56 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

  database connect time: 0.0005 seconds. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:08:46 	lx 	(1. Application process)

Tcp server 2 start check: start. 	14.1.2022 	16:08:46 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:08:46 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01445f2e30, size: 400. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:08:47 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:08:48 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:08:48 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:08:48 	lx 	(5. palvelin)

--- server started in 0.0023 seconds, 2022-01-14 16:08:48, used memory 3109.1 kb --- 	 5. 	14.1.2022 	16:08:48 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:08:48 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:08:51
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00117
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["table_prefix"] = "co";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "integer";
 };
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["sql"] = "SELECT COUNT(*) FROM company";
};. 	14.1.2022 	16:08:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_pr.json' OR name_id = '_tab_default.json'";
};. 	14.1.2022 	16:09:35 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["sql"] = "SELECT pr.product_id, pr.document_count, pr.type_, w.drawing_number, pr.work__position_num_id, pr.production_control_type, pr.need_calculation_in_use, pr.storable, pr.name, pr.drawing_number__material, pr.supplier_material_code, pr.product_group, pr.critical_start_date, pr.critical_date, pr.stock_balance__unit, pr.unit, pr.action_limit__unit, pr.coming_amount, pr.going_amount, pr.free_amount, pr.minimum_stock, pr.supplier_id, pr.track_time_status, pr.supplier_price_in_use, pr.stock_parcel_in_use, pr.cost_center, pr.purchase_order_code_id, pr.purchase_price__unit, pr.cost_price__unit, pr.sales_price__unit, pr.calculated_sales_pr__unit, pr.min_purchase_amount__unit, pr.net_weight, pr.creator_id, pr.info, pr.transfer_id, pr.change_id, pr.record_id\
 FROM product pr\
 LEFT OUTER JOIN work w ON w.work__position_num_id = pr.work__position_num_id\
 WHERE pr.record_id IS NOT NULL\
 ORDER BY pr.product_id\
 LIMIT 2000";
 ["table_prefix"] = "pr";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "pr.product_id";
  [2] = "pr.json_data.document_count";
  [3] = "pr.product_type";
  [4] = "pr.json_data.work_drawing_number-work";
  [5] = "pr.work_number_id";
  [6] = "pr.json_data.production_control_type";
  [7] = "pr.json_data.need_calculation_in_use";
  [8] = "pr.stock_type";
  [9] = "pr.name";
  [10] = "pr.drawing_number";
  [11] = "pr.json_data.company_product_code";
  [12] = "pr.product_group";
  [13] = "pr.json_data.critical_start_date";
  [14] = "pr.json_data.critical_date";
  [15] = "pr.json_data.stock_balance";
  [16] = "pr.stock_unit";
  [17] = "pr.json_data.action_limit";
  [18] = "pr.json_data.coming_amount";
  [19] = "pr.json_data.going_amount";
  [20] = "pr.json_data.free_amount";
  [21] = "pr.minimum_stock";
  [22] = "pr.default_supplier_id";
  [23] = "pr.json_data.track_time_status";
  [24] = "pr.json_data.supplier_price_in_use";
  [25] = "pr.json_data.stock_parcel_in_use";
  [26] = "pr.json_data.cost_center";
  [27] = "pr.purchase_order_code_id";
  [28] = "pr.purchase_price";
  [29] = "pr.cost_price";
  [30] = "pr.sales_price";
  [31] = "pr.json_data.calculated_sales_pr__unit";
  [32] = "pr.minimum_order_amount";
  [33] = "pr.json_data.net_weight";
  [34] = "pr.json_data.create_user";
  [35] = "pr.info";
  [36] = "pr.json_data.transfer_id";
  [37] = "pr.modify_id";
  [38] = "pr.record_id";
 };
 ["field"] = {
  [1] = "pr.product_id";
  [2] = "pr.document_count";
  [3] = "pr.type_";
  [4] = "w.drawing_number";
  [5] = "pr.work__position_num_id";
  [6] = "pr.production_control_type";
  [7] = "pr.need_calculation_in_use";
  [8] = "pr.storable";
  [9] = "pr.name";
  [10] = "pr.drawing_number__material";
  [11] = "pr.supplier_material_code";
  [12] = "pr.product_group";
  [13] = "pr.critical_start_date";
  [14] = "pr.critical_date";
  [15] = "pr.stock_balance__unit";
  [16] = "pr.unit";
  [17] = "pr.action_limit__unit";
  [18] = "pr.coming_amount";
  [19] = "pr.going_amount";
  [20] = "pr.free_amount";
  [21] = "pr.minimum_stock";
  [22] = "pr.supplier_id";
  [23] = "pr.track_time_status";
  [24] = "pr.supplier_price_in_use";
  [25] = "pr.stock_parcel_in_use";
  [26] = "pr.cost_center";
  [27] = "pr.purchase_order_code_id";
  [28] = "pr.purchase_price__unit";
  [29] = "pr.cost_price__unit";
  [30] = "pr.sales_price__unit";
  [31] = "pr.calculated_sales_pr__unit";
  [32] = "pr.min_purchase_amount__unit";
  [33] = "pr.net_weight";
  [34] = "pr.creator_id";
  [35] = "pr.info";
  [36] = "pr.transfer_id";
  [37] = "pr.change_id";
  [38] = "pr.record_id";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "integer";
  [4] = "string";
  [5] = "string";
  [6] = "integer";
  [7] = "boolean";
  [8] = "boolean";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "date";
  [14] = "date";
  [15] = "number";
  [16] = "string";
  [17] = "number";
  [18] = "number";
  [19] = "number";
  [20] = "number";
  [21] = "number";
  [22] = "string";
  [23] = "integer";
  [24] = "boolean";
  [25] = "boolean";
  [26] = "string";
  [27] = "string";
  [28] = "number";
  [29] = "number";
  [30] = "number";
  [31] = "number";
  [32] = "number";
  [33] = "number";
  [34] = "string";
  [35] = "string";
  [36] = "string";
  [37] = "string";
  [38] = "string";
 };
};. 	14.1.2022 	16:09:35 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "integer";
 };
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["sql"] = "SELECT COUNT(*) FROM product";
};. 	14.1.2022 	16:09:35 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:12:09 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

closing socket '75'. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

closing socket '76'. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          8
poll.fd_count:        1
pollCount:            14456
pollInCount:          9
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   7753
totalBytesSent:       35418. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 77
. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

closing socket '77'. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01445f2e30. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01445f2e30, size: 400. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01445f2e30. 	14.1.2022 	16:12:09 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:12:09 	_lx_SERVER 	(5. palvelin)

Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:ma_server_4d.lx. 	14.1.2022 	16:12:14 	_lua_ FileRun 	(6. tbl_ 5)

err: Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:ma_server_4d.lx. 	14.1.2022 	16:12:14 	_lua_ FileRun 	(6. tbl_ 5)

unload lx environment: does not exist. 	14.1.2022 	16:12:14 	_lua_ FileUnload 	(6. tbl_ 5)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:12:27 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01410acfe0, size: 400. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

--- server started in 0.0017 seconds, 2022-01-14 16:12:29, used memory 3109.7 kb --- 	 5. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:12:29 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:12:39
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 509
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00080
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["table_prefix"] = "co";
};. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	16:12:39 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 730 bytes ***. 	14.1.2022 	16:14:48 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	16:14:48 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:15:45 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["table_prefix"] = "co";
};. 	14.1.2022 	16:18:03 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 395 bytes ***. 	14.1.2022 	16:18:19 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	16:18:19 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:18:30 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["table_prefix"] = "co";
};. 	14.1.2022 	16:19:04 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 414 bytes ***. 	14.1.2022 	16:25:01 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	16:25:01 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:25:06 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

closing socket '76'. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

closing socket '77'. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          10
poll.fd_count:        0
pollCount:            53280
pollInCount:          13
pollOutCount:         0
pollCloseCount:       3
pollErrCount:         0
fd add/remove count:  5/5
totalBytesReceived:   9617
totalBytesSent:       29575. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01410acfe0. 	14.1.2022 	16:25:06 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:25:06 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:25:09 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f0b2ad0, size: 400. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

--- server started in 0.0024 seconds, 2022-01-14 16:25:11, used memory 2999.6 kb --- 	 5. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:25:11 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:25:15
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 515
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["trace"] = false;
};. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

returnType - plg4d array4dToArrayTable = "record array". 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00094
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:25:15 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	16:25:24 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["database"] = "plg4d";
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["trace"] = false;
};. 	14.1.2022 	16:25:24 	lx 	(5. palvelin)

returnType - plg4d array4dToArrayTable = "record array". 	14.1.2022 	16:25:24 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:30:00 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

closing socket '77'. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          3
poll.fd_count:        1
pollCount:            19984
pollInCount:          4
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   2970
totalBytesSent:       9736. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 79
. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

closing socket '79'. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x014f0b2ad0. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f0b2ad0, size: 400. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x014f0b2ad0. 	14.1.2022 	16:30:00 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:30:00 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:30:05 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

  database connect time: 0.0004 seconds. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0140f3c010, size: 400. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

--- server started in 0.0020 seconds, 2022-01-14 16:30:07, used memory 3129.7 kb --- 	 5. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:30:07 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:30:20
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 509
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["trace"] = false;
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

returnType - plg4d array4dToArrayTable = "record array". 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

name_id. 	14.1.2022 	16:30:20 	lx 	(5. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 779 bytes ***. 	14.1.2022 	16:30:38 	lx 	(5. palvelin)

closing socket '80'. 	14.1.2022 	16:30:38 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:31:37 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

closing socket '78'. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

closing socket '79'. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            6353
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   779
totalBytesSent:       0. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0140f3c010. 	14.1.2022 	16:31:37 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:31:37 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:31:41 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

  database connect time: 0.0006 seconds. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f034800, size: 400. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

--- server started in 0.0018 seconds, 2022-01-14 16:31:43, used memory 3118.8 kb --- 	 5. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:31:43 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:31:55
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 511
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

record array. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

name_id. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

nil. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

name_id. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

text_value. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

nil. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

text_value. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00109
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:31:55 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["table_prefix"] = "co";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["table_prefix"] = "co";
 ["trace"] = false;
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

record array. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.company_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.company_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.name-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.name-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.name_2-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.name_2-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.country-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.country-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.area-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.area-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.transfer_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.transfer_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.modify_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.modify_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.text_address-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.text_address-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.company_number-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.company_number-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.default_sales_person_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.default_sales_person_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.email-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.email-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.address-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.address-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.post_code-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.post_code-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.post_office-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.post_office-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.send_type-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.send_type-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.way_of_delivery-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.way_of_delivery-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.language-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.language-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.add_packing_cost-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.add_packing_cost-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.add_packing_material-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.add_packing_material-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.info-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.info-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.create_time-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.create_time-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.record_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.record_id-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.json_data.last_modification_date-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.json_data.last_modification_date-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co.company_type-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

co. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

.company_type-customer. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  [""] = {
   ["name-customer"] = "Elävä Sointu Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "Englanti";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "etunimi.sukunimi@elsointu.fi";
   ["modify_id-customer"] = "20211117.123606.dy1rc.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Tuoteryhmät:MM+ST; ";
   ["company_number-customer"] = "0003";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = " ";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-12-23";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.ph2i9.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Pori";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Elävä Sointu Oy\
PL 5\
28601 Pori";
   ["address-customer"] = "PL 5";
   ["post_code-customer"] = "28601";
   ["way_of_delivery-customer"] = "Posti";
   ["company_id-customer"] = "ELSOINTU";
  };
 };
 [2] = {
  [""] = {
   ["name-customer"] = "Viruspiste Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "Suomi";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e01re.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "[manual]";
   ["company_number-customer"] = "0019";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-08-19";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rd2ia.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Turku";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Viruspiste Oy\
PL 555\
20500 Turku";
   ["address-customer"] = "PL 555";
   ["post_code-customer"] = "20500";
   ["way_of_delivery-customer"] = "Posti";
   ["company_id-customer"] = "VIRUSPISTE";
  };
 };
 [3] = {
  [""] = {
   ["name-customer"] = "Mediatalo Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e01rg.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "zxc";
   ["company_number-customer"] = "0011";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2022-05-12";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rd2ib.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Mediatalo Oy\
Vasarakatu 2\
40100 Jyväskylä";
   ["address-customer"] = "Vasarakatu 2";
   ["post_code-customer"] = "40100";
   ["way_of_delivery-customer"] = "Sähköposti";
   ["company_id-customer"] = "MEDIAMUKS";
  };
 };
 [4] = {
  [""] = {
   ["name-customer"] = "Muovi Ltd";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e11ri.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0013";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-05";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "0190045";
   ["record_id-customer"] = "20050930.001951.rd2ic.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Vantaa";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Muovi Ltd\
Pyykkärintie 4\
01233 Vantaa\
0190045";
   ["address-customer"] = "Pyykkärintie 4";
   ["post_code-customer"] = "01233";
   ["way_of_delivery-customer"] = "Posti";
   ["company_id-customer"] = "MUOVI";
  };
 };
 [5] = {
  [""] = {
   ["name-customer"] = "Graafinen Painatus";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e21rk.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Tuoteryhmät:UM;<zx<zx";
   ["company_number-customer"] = "0005";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2022-01-24";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.re2id.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Graafinen Painatus\
Yliopiston 11 A 4\
40100 Jyväskylä";
   ["address-customer"] = "Yliopiston 11 A 4";
   ["post_code-customer"] = "40100";
   ["way_of_delivery-customer"] = "Viedään";
   ["company_id-customer"] = "GRAFHEAD";
  };
 };
 [6] = {
  [""] = {
   ["name-customer"] = "Satunnaisasiakas";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2016-12-29";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e31rm.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0021";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2019-07-08";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "EK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.re2ie.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "";
   ["address-customer"] = "";
   ["post_code-customer"] = "";
   ["way_of_delivery-customer"] = "Matkahuolto";
   ["company_id-customer"] = "X";
  };
 };
 [7] = {
  [""] = {
   ["name-customer"] = "Koko Kosmetiikka";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e41ro.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = " ";
   ["company_number-customer"] = "0009";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-06";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "003701141622015";
   ["record_id-customer"] = "20050930.001951.re2if.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Espoo";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Koko Kosmetiikka\
Mankkaa 21\
02256 Espoo\
003701141622015";
   ["address-customer"] = "Mankkaa 21";
   ["post_code-customer"] = "02256";
   ["way_of_delivery-customer"] = "Viedään";
   ["company_id-customer"] = "KOSMETIIKKA";
  };
 };
 [8] = {
  [""] = {
   ["name-customer"] = "Tukkukuoma Ky";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.e51rq.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0018";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 1;
    ["last_modification_date-customer"] = "2022-01-04";
    ["add_packing_material-customer"] = 1;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rf2ig.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Helsinki";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Tukkukuoma Ky\
PL 27\
01200 Helsinki";
   ["address-customer"] = "PL 27";
   ["post_code-customer"] = "01200";
   ["way_of_delivery-customer"] = "Polkupyörä";
   ["company_id-customer"] = "TUKKU";
  };
 };
 [9] = {
  [""] = {
   ["name-customer"] = "Manage Applications";
   ["company_type-customer"] = 0;
   ["language-customer"] = "Suomi";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "manage@manageapp.com";
   ["modify_id-customer"] = "20211117.123606.eb1rs.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = " Finvoice testiä varten lisätty vapaa teksti kohdan teksti.";
   ["company_number-customer"] = "0010";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-25";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "FV";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rf2ii.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Manage Applications\
Laukaantie 4\
40320 Jyväskylä";
   ["address-customer"] = "Laukaantie 4";
   ["post_code-customer"] = "40320";
   ["way_of_delivery-customer"] = "Posti";
   ["company_id-customer"] = "MANAGE";
  };
 };
 [10] = {
  [""] = {
   ["name-customer"] = "Sky Is Limit Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2015-09-06";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.eg1ru.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0015";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-16";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rg2ij.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Helsinki";
   ["name_2-customer"] = "Taivas Rajana Oy";
   ["text_address-customer"] = "Sky Is Limit Oy\
Taivas Rajana Oy\
Huopalahdenkatu 58 B\
00350 Helsinki";
   ["address-customer"] = "Huopalahdenkatu 58 B";
   ["post_code-customer"] = "00350";
   ["way_of_delivery-customer"] = "Sähköposti + viedään";
   ["company_id-customer"] = "SKYISLIMIT";
  };
 };
 [11] = {
  [""] = {
   ["name-customer"] = "Puupää Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2018-08-06";
   ["email-customer"] = "etunimi.sukunimi@puupää.com";
   ["modify_id-customer"] = "20211117.123606.eh1rw.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0014";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-09-30";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "FV";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rg2ik.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Puupää Oy\
Lastutie 3\
40320 Jyväskylä";
   ["address-customer"] = "Lastutie 3";
   ["post_code-customer"] = "40320";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "PUUPÄÄ";
  };
 };
 [12] = {
  [""] = {
   ["name-customer"] = "Tanjazz Oy, Brekdancers Lahti";
   ["company_type-customer"] = 0;
   ["language-customer"] = "1";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.ei1ry.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0017";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-26";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rg2il.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Lahti";
   ["name_2-customer"] = "IV-Tehdas";
   ["text_address-customer"] = "Tanjazz Oy, Brekdancers Lahti\
IV-Tehdas\
Tiekatu 8\
15100 Lahti";
   ["address-customer"] = "Tiekatu 8";
   ["post_code-customer"] = "15100";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "TANJAZZ";
  };
 };
 [13] = {
  [""] = {
   ["name-customer"] = "ABC Koneet Oyj";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "abc@abc.com";
   ["modify_id-customer"] = "20211117.123606.ej1s0.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "sdasassa\
<rahtivapaa>Rahtivapaa jos yli 15 kuutiota</rahtivapaa>\
dsfasdf\
asdfasdf.";
   ["company_number-customer"] = "1001";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-12-12";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "FV";
    ["default_sales_person_id-customer"] = "EK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rg2im.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Helsinki";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "ABC Koneet Oyj\
PL 10\
00381 Helsinki";
   ["address-customer"] = "PL 10";
   ["post_code-customer"] = "00381";
   ["way_of_delivery-customer"] = "Kiitolinja";
   ["company_id-customer"] = "ABC KONEET";
  };
 };
 [14] = {
  [""] = {
   ["name-customer"] = "Wärttinä Finland Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "1";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.ek1s2.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Tuoteryhmät:*MM+*KM;";
   ["company_number-customer"] = "0033";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-07";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "EK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rh2in.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Turku";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Wärttinä Finland Oy\
Salaminkatu 45\
20810 Turku";
   ["address-customer"] = "Salaminkatu 45";
   ["post_code-customer"] = "20810";
   ["way_of_delivery-customer"] = "Kiitolinja";
   ["company_id-customer"] = "WÄRTTINÄ";
  };
 };
 [15] = {
  [""] = {
   ["name-customer"] = "ABC Moottori Oyj";
   ["company_type-customer"] = 1;
   ["language-customer"] = "";
   ["create_time-customer"] = "2014-01-09";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.ek1s4.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Tuoteryhmät:*MM+*KM;\
\
asd";
   ["company_number-customer"] = "00002";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-11-26";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rh2io.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Vaasa";
   ["name_2-customer"] = "Isomoottoritehdas";
   ["text_address-customer"] = "ABC Moottori Oyj\
Isomoottoritehdas\
PL 6\
65101 Vaasa";
   ["address-customer"] = "PL 6";
   ["post_code-customer"] = "65101";
   ["way_of_delivery-customer"] = "Kiitolinja";
   ["company_id-customer"] = "ABC VAASA";
  };
 };
 [16] = {
  [""] = {
   ["name-customer"] = "Koneen Valo Oy";
   ["company_type-customer"] = 3;
   ["language-customer"] = "Englanti";
   ["create_time-customer"] = "2015-02-19";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.el1s6.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0008";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2022-01-13";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "EDI";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "Suomi";
   ["record_id-customer"] = "20050930.001951.rh2ip.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Lohja As";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Koneen Valo Oy\
Honkatie 11\
08500 Lohja As\
Suomi";
   ["address-customer"] = "Honkatie 11";
   ["post_code-customer"] = "08500";
   ["way_of_delivery-customer"] = "Kiitolinja";
   ["company_id-customer"] = "KONEEN-VALO";
  };
 };
 [17] = {
  [""] = {
   ["name-customer"] = "Susi Akselit Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2016-10-28";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.eo1s8.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Susi Akselit Oy:n lisätietoja";
   ["company_number-customer"] = "0016";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-07";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "EK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.ri2iq.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Hämeenlinna";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Susi Akselit Oy\
Autoilijantie 1. PL181\
13100 Hämeenlinna";
   ["address-customer"] = "Autoilijantie 1. PL181";
   ["post_code-customer"] = "13100";
   ["way_of_delivery-customer"] = "Kiitolinja";
   ["company_id-customer"] = "SUSI AKSELIT";
  };
 };
 [18] = {
  [""] = {
   ["name-customer"] = "Hexa Tuotteet Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2019-02-22";
   ["email-customer"] = "info@hermextuotteet.fi";
   ["modify_id-customer"] = "20211117.123606.ep1sa.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0006";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-07-09";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.ri2ir.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Hexa Tuotteet Oy\
Herkkukatu 16\
40100 Jyväskylä";
   ["address-customer"] = "Herkkukatu 16";
   ["post_code-customer"] = "40100";
   ["way_of_delivery-customer"] = "Posti";
   ["company_id-customer"] = "HEXA";
  };
 };
 [19] = {
  [""] = {
   ["name-customer"] = "KeuKing Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-03-18";
   ["email-customer"] = "myynti@keuking.fi";
   ["modify_id-customer"] = "20211117.123606.eq1sc.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0007";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "FI";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2022-04-01";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "Suomi";
   ["record_id-customer"] = "20050930.001951.ri2is.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Keuruu";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "KeuKing Oy\
Keuruuntie 12 B 8\
42700 Keuruu\
Suomi";
   ["address-customer"] = "Keuruuntie 12 B 8";
   ["post_code-customer"] = "42700";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "KEUKING";
  };
 };
 [20] = {
  [""] = {
   ["name-customer"] = "Perfecta Industrier Ab";
   ["company_type-customer"] = 0;
   ["language-customer"] = "SWE";
   ["create_time-customer"] = "2021-04-30";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.eq1se.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = " ";
   ["company_number-customer"] = "0030";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-08-20";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "SWEDEN";
   ["record_id-customer"] = "20050930.001951.rj2it.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Arvika";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Perfecta Industrier Ab\
Box 903\
67129 Arvika\
SWEDEN";
   ["address-customer"] = "Box 903";
   ["post_code-customer"] = "67129";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "PERFECTA";
  };
 };
 [21] = {
  [""] = {
   ["name-customer"] = "M-talo";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-04-30";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.er1sg.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "\"Hello -.åäöÅÄÖ•ƒ€?®†√œøæ™π±≈∆ﬁª†µı¥¢‰¶‡√É∏≠…¸˛‹›≈≤÷◊°¡€\"";
   ["company_number-customer"] = "0118";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-10-02";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rj2iu.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "M-talo";
   ["address-customer"] = "";
   ["post_code-customer"] = "";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "MTALO";
  };
 };
 [22] = {
  [""] = {
   ["name-customer"] = "Sähkötuote Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-07-01";
   ["email-customer"] = "myynti@sahkotuote.com";
   ["modify_id-customer"] = "20211117.123606.es1si.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0004";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-10-30";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "ANI";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20050930.001951.rj2iv.co_  zzy000c09f7bd0c503";
   ["post_office-customer"] = "Vaasa";
   ["name_2-customer"] = "Konttori";
   ["text_address-customer"] = "Sähkötuote Oy\
Konttori\
Silmukkatie 1\
65320 Vaasa";
   ["address-customer"] = "Silmukkatie 1";
   ["post_code-customer"] = "65320";
   ["way_of_delivery-customer"] = "Matkahuolto";
   ["company_id-customer"] = "SÄHKÖTUOTE";
  };
 };
 [23] = {
  [""] = {
   ["name-customer"] = "Pan-Oston Oy";
   ["company_type-customer"] = 2;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-08-20";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.et1sk.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0094";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-11-26";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "ANI";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20071106.122711.oo001.co_  zzy000c09f7bd0c506";
   ["post_office-customer"] = "Villähde";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Pan-Oston Oy\
Teollisuustie 1\
15540 Villähde";
   ["address-customer"] = "Teollisuustie 1";
   ["post_code-customer"] = "15540";
   ["way_of_delivery-customer"] = "Noudetaan";
   ["company_id-customer"] = "PAN-OSTON";
  };
 };
 [24] = {
  [""] = {
   ["name-customer"] = "Pullin Musiikki Oy (Finvoice Testi)";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-09-12";
   ["email-customer"] = "etunimi.sukunimi@pullinmusiikki.fi";
   ["modify_id-customer"] = "20211117.123606.eu1sm.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "Meidän kanssa on kiva tehdä kauppaa";
   ["company_number-customer"] = "0095";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-08-20";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "FV";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20080110.100434.nf001.co_  zzy00050bfd29f1e02";
   ["post_office-customer"] = "Helsinki";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Pullin Musiikki Oy (Finvoice Testi)\
Puukatu 2 F\
00112 Helsinki";
   ["address-customer"] = "Puukatu 2 F";
   ["post_code-customer"] = "00112";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "PULLINMUSIIK";
  };
 };
 [25] = {
  [""] = {
   ["name-customer"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-09-12";
   ["email-customer"] = "etunimi.sukunimi@sensorit.fi";
   ["modify_id-customer"] = "20211117.123606.ev1so.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0096";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2022-04-25";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "FV";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20080110.101958.nf003.co_  zzy00050bfd29f1e02";
   ["post_office-customer"] = "Helsinki";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35\
Ökylähiökatu 4\
00122 Helsinki";
   ["address-customer"] = "Ökylähiökatu 4";
   ["post_code-customer"] = "00122";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "SENSORIT";
  };
 };
 [26] = {
  [""] = {
   ["name-customer"] = "Rahtarit Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-08-28";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.ew1sq.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0100";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-11-14";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "AK";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20090225.162612.ex001.co_  zzy0001d0fbe9b7a0g";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Rahtarit Oy\
Sorastajankatu 45\
40100 Jyväskylä";
   ["address-customer"] = "Sorastajankatu 45";
   ["post_code-customer"] = "40100";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "RAHTARIT";
  };
 };
 [27] = {
  [""] = {
   ["name-customer"] = "Tiimiakatemia";
   ["company_type-customer"] = 3;
   ["language-customer"] = "";
   ["create_time-customer"] = "2021-09-13";
   ["email-customer"] = "";
   ["modify_id-customer"] = "20211117.123606.ex1ss.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "0103";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-09-13";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "PM";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20090326.142416.ke001.co_  zzy0000c29d4a10e02";
   ["post_office-customer"] = "Jyväskylä";
   ["name_2-customer"] = "Jyväskylän Ammattikorkeakoulu";
   ["text_address-customer"] = "Tiimiakatemia\
Jyväskylän Ammattikorkeakoulu\
Piippukatu 3\
40100 Jyväskylä";
   ["address-customer"] = "Piippukatu 3";
   ["post_code-customer"] = "40100";
   ["way_of_delivery-customer"] = "";
   ["company_id-customer"] = "TIIMIAKATEMI";
  };
 };
 [28] = {
  [""] = {
   ["name-customer"] = "Helsingin Rauta Oy";
   ["company_type-customer"] = 0;
   ["language-customer"] = "Suomi";
   ["create_time-customer"] = "0000-00-00";
   ["email-customer"] = "asd@asd.com";
   ["modify_id-customer"] = "20211117.123606.ey1su.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "";
   ["company_number-customer"] = "125";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "";
    ["add_packing_cost-customer"] = 0;
    ["last_modification_date-customer"] = "2021-05-30";
    ["add_packing_material-customer"] = 0;
    ["send_type-customer"] = "";
    ["default_sales_person_id-customer"] = "";
   };
   ["country-customer"] = "";
   ["record_id-customer"] = "20110120.164026.lt00g.co_  zzy0001b63a2c96405";
   ["post_office-customer"] = "Hyvinkää";
   ["name_2-customer"] = "";
   ["text_address-customer"] = "Helsingin Rauta Oy\
Niittytie 3\
53200\9Hyvinkää";
   ["address-customer"] = "Niittytie 3";
   ["post_code-customer"] = "53200";
   ["way_of_delivery-customer"] = "Viedään";
   ["company_id-customer"] = "HKI RAUTA";
  };
 };
 [29] = {
  [""] = {
   ["name-customer"] = "INFLIGHT SERVICE EUROPE AB/Deliveries";
   ["company_type-customer"] = 0;
   ["language-customer"] = "";
   ["create_time-customer"] = "2016-07-03";
   ["email-customer"] = "cecilia.minning@inflightservice.se";
   ["modify_id-customer"] = "20211117.123606.ez1sw.co_  zzy0ae544bd03e1c09";
   ["info-customer"] = "4/2014 NIMI MUUTTUNUT  JA LASKUTUSOSOITE";
   ["company_number-customer"] = "1957";
   ["json_data"] = {
    ["transfer_id-customer"] = "";
    ["area-customer"] = "SE";
    ["add_packing_cost-cus. 	14.1.2022 	16:32:08 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:32:50 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

closing socket '79'. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

closing socket '80'. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          3
poll.fd_count:        1
pollCount:            4752
pollInCount:          4
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   2952
totalBytesSent:       9721. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 81
. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

closing socket '81'. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x014f034800. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f034800, size: 400. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x014f034800. 	14.1.2022 	16:32:50 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:32:50 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:32:55 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01445be710, size: 400. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

--- server started in 0.0029 seconds, 2022-01-14 16:32:57, used memory 3130.4 kb --- 	 5. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:32:57 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:33:11
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["trace"] = false;
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

record array. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

name_id. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

nil. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

name_id. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

text_value. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

nil. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

text_value. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00104
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:33:11 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["database"] = "plg4d";
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["table_prefix"] = "co";
};. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["trace"] = false;
 ["table_prefix"] = "co";
 ["database"] = "plg4d";
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

record array. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.company_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.company_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.name-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.name-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.name_2-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.name_2-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.country-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.country-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.area-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.area-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.transfer_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.transfer_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.modify_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.modify_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.text_address-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.text_address-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.company_number-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.company_number-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.default_sales_person_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.default_sales_person_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.email-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.email-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.address-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.address-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.post_code-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.post_code-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.post_office-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.post_office-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.send_type-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.send_type-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.way_of_delivery-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.way_of_delivery-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.language-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.language-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.add_packing_cost-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.add_packing_cost-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.add_packing_material-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.add_packing_material-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.info-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.info-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.create_time-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.create_time-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.record_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.record_id-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.json_data.last_modification_date-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.json_data.last_modification_date-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co.company_type-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

co. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

.company_type-customer. 	14.1.2022 	16:33:20 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:56:55 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

closing socket '80'. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

closing socket '81'. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          3
poll.fd_count:        1
pollCount:            36928
pollInCount:          4
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   2951
totalBytesSent:       9694. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 82
. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

closing socket '82'. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01445be710. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01445be710, size: 400. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01445be710. 	14.1.2022 	16:56:55 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:56:55 	_lx_SERVER 	(5. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	14.1.2022 	16:58:07 	_lx_SERVER 	(6. tbl_ 7)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:58:10 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

  database connect time: 0.0005 seconds. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01445650d0, size: 400. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

--- server started in 0.0017 seconds, 2022-01-14 16:58:11, used memory 3113.6 kb --- 	 5. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:58:11 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	16:58:33 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

closing socket '81'. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

closing socket '82'. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            1488
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01445650d0. 	14.1.2022 	16:58:33 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	16:58:33 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	16:58:36 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0144168670, size: 400. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

--- server started in 0.0020 seconds, 2022-01-14 16:58:37, used memory 3109.7 kb --- 	 5. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	16:58:37 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 16:58:45
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
};. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
};. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'name_id' tablePrefixField - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'name_id' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'name_id' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'text_value' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'text_value' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00096
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

option - plg4d execute = {
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["table_prefix"] = "co";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["trace"] = false;
 ["table_prefix"] = "co";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co' tablePrefixField - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co' tablePrefix - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.company_id-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.company_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.name-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.name-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.name_2-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.name_2-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.country-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.country-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.area-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.area-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.transfer_id-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.transfer_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.modify_id-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.modify_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.text_address-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.text_address-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.company_number-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.company_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.default_sales_person_id-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.default_sales_person_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.email-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.email-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.address-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.address-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.post_code-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.post_code-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.post_office-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.post_office-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.send_type-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.send_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.way_of_delivery-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.way_of_delivery-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.language-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.language-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.add_packing_cost-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.add_packing_cost-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.add_packing_material-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.add_packing_material-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.info-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.info-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.create_time-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.create_time-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.record_id-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.record_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.json_data.last_modification_date-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.json_data.last_modification_date-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'co.company_type-customer' name - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

'.company_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	16:58:45 	lx 	(5. palvelin)

option - plg4d execute = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["field_type"] = {
  [1] = "integer";
 };
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["database"] = "plg4d";
};. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "integer";
 };
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["database"] = "plg4d";
};. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

'COUNT(*)' tablePrefixField - array4dToArrayTable. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

'COUNT(*)' name - array4dToArrayTable. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

'COUNT(*)' name2 - array4dToArrayTable. 	14.1.2022 	16:58:58 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	17:00:26 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

closing socket '82'. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

closing socket '86'. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          4
poll.fd_count:        1
pollCount:            7728
pollInCount:          5
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   3703
totalBytesSent:       10066. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 87
. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

closing socket '87'. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0144168670. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0144168670, size: 400. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0144168670. 	14.1.2022 	17:00:26 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	17:00:26 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	17:00:28 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129f0e780, size: 400. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

--- server started in 0.0017 seconds, 2022-01-14 17:00:30, used memory 3127.1 kb --- 	 5. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	17:00:30 	lx 	(5. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	14.1.2022 	17:00:35 	lx 	(5. palvelin)

closing socket '88'. 	14.1.2022 	17:00:35 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 17:00:39
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 497
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'name_id' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'name_id' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'name_id' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'text_value' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'text_value' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00113
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["trace"] = false;
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
};. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.company_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'company_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.name-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'name-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.name_2-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'name_2-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.country-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'country-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.area-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.area-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.transfer_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.transfer_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.modify_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'modify_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.text_address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'text_address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.company_number-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'company_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.default_sales_person_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.default_sales_person_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.email-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'email-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.post_code-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'post_code-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.post_office-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'post_office-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.send_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.send_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.way_of_delivery-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'way_of_delivery-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.language-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'language-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.add_packing_cost-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.add_packing_cost-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.add_packing_material-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.add_packing_material-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.info-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'info-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.create_time-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'create_time-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.record_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'record_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.json_data.last_modification_date-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'json_data.last_modification_date-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'co.company_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

'company_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:39 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

'COUNT(*)' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

'COUNT(*)' name - array4dToArrayTable. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

'COUNT(*)' name2 - array4dToArrayTable. 	14.1.2022 	17:00:45 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT COUNT(*)\
 FROM company co\
 WHERE co.company_id LIKE '%'";
 ["field"] = {
  [1] = "company";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "company";
 };
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT COUNT(*)\
 FROM company co\
 WHERE co.company_id LIKE '%'";
 ["field"] = {
  [1] = "company";
 };
 ["trace"] = false;
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "company";
 };
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'company' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'company' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'mpany' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.company_number, co.type_, co.address, co.post_code, co.post_office, co.country, co.vat_number, co.electronic_invoice_address, co.send_type, co.way_of_delivery, co.info, co.transfer_id, co.swift_code, co.creation_date, co.last_modification_date, co.record_id\
 FROM company co\
 WHERE co.company_id LIKE '%'\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.company_number";
  [4] = "co.type_";
  [5] = "co.address";
  [6] = "co.post_code";
  [7] = "co.post_office";
  [8] = "co.country";
  [9] = "co.vat_number";
  [10] = "co.electronic_invoice_address";
  [11] = "co.send_type";
  [12] = "co.way_of_delivery";
  [13] = "co.info";
  [14] = "co.transfer_id";
  [15] = "co.swift_code";
  [16] = "co.creation_date";
  [17] = "co.last_modification_date";
  [18] = "co.record_id";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.company_number-customer";
  [4] = "co.company_type-customer";
  [5] = "co.address-customer";
  [6] = "co.post_code-customer";
  [7] = "co.post_office-customer";
  [8] = "co.country-customer";
  [9] = "co.json_data.vat_number-customer";
  [10] = "co.json_data.electronic_invoice_address-customer";
  [11] = "co.json_data.send_type-customer";
  [12] = "co.way_of_delivery-customer";
  [13] = "co.info-customer";
  [14] = "co.json_data.transfer_id-customer";
  [15] = "co.json_data.intermediator-customer";
  [16] = "co.create_time-customer";
  [17] = "co.json_data.last_modification_date-customer";
  [18] = "co.record_id-customer";
 };
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "date";
  [17] = "date";
  [18] = "string";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT co.company_id, co.name, co.company_number, co.type_, co.address, co.post_code, co.post_office, co.country, co.vat_number, co.electronic_invoice_address, co.send_type, co.way_of_delivery, co.info, co.transfer_id, co.swift_code, co.creation_date, co.last_modification_date, co.record_id\
 FROM company co\
 WHERE co.company_id LIKE '%'\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.company_number";
  [4] = "co.type_";
  [5] = "co.address";
  [6] = "co.post_code";
  [7] = "co.post_office";
  [8] = "co.country";
  [9] = "co.vat_number";
  [10] = "co.electronic_invoice_address";
  [11] = "co.send_type";
  [12] = "co.way_of_delivery";
  [13] = "co.info";
  [14] = "co.transfer_id";
  [15] = "co.swift_code";
  [16] = "co.creation_date";
  [17] = "co.last_modification_date";
  [18] = "co.record_id";
 };
 ["trace"] = false;
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.company_number-customer";
  [4] = "co.company_type-customer";
  [5] = "co.address-customer";
  [6] = "co.post_code-customer";
  [7] = "co.post_office-customer";
  [8] = "co.country-customer";
  [9] = "co.json_data.vat_number-customer";
  [10] = "co.json_data.electronic_invoice_address-customer";
  [11] = "co.json_data.send_type-customer";
  [12] = "co.way_of_delivery-customer";
  [13] = "co.info-customer";
  [14] = "co.json_data.transfer_id-customer";
  [15] = "co.json_data.intermediator-customer";
  [16] = "co.create_time-customer";
  [17] = "co.json_data.last_modification_date-customer";
  [18] = "co.record_id-customer";
 };
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "date";
  [17] = "date";
  [18] = "string";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.company_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'company_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.name-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'name-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.company_number-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'company_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.company_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'company_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.post_code-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'post_code-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.post_office-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'post_office-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.country-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'country-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.vat_number-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.vat_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.electronic_invoice_address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.electronic_invoice_address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.send_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.send_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.way_of_delivery-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'way_of_delivery-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.info-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'info-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.transfer_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.transfer_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.intermediator-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.intermediator-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.create_time-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'create_time-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.json_data.last_modification_date-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'json_data.last_modification_date-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'co.record_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'record_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'COUNT(*)' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'COUNT(*)' name - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

'COUNT(*)' name2 - array4dToArrayTable. 	14.1.2022 	17:00:49 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT COUNT(*)\
 FROM company co\
 WHERE co.company_id LIKE '%'";
 ["field"] = {
  [1] = "company";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "company";
 };
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT COUNT(*)\
 FROM company co\
 WHERE co.company_id LIKE '%'";
 ["field"] = {
  [1] = "company";
 };
 ["trace"] = false;
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "company";
 };
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'company' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'company' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'mpany' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT co.company_id, co.name, co.company_number, co.type_, co.address, co.post_code, co.post_office, co.country, co.vat_number, co.electronic_invoice_address, co.send_type, co.way_of_delivery, co.info, co.transfer_id, co.swift_code, co.creation_date, co.last_modification_date, co.record_id\
 FROM company co\
 WHERE co.company_id LIKE '%'\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.company_number";
  [4] = "co.type_";
  [5] = "co.address";
  [6] = "co.post_code";
  [7] = "co.post_office";
  [8] = "co.country";
  [9] = "co.vat_number";
  [10] = "co.electronic_invoice_address";
  [11] = "co.send_type";
  [12] = "co.way_of_delivery";
  [13] = "co.info";
  [14] = "co.transfer_id";
  [15] = "co.swift_code";
  [16] = "co.creation_date";
  [17] = "co.last_modification_date";
  [18] = "co.record_id";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.company_number-customer";
  [4] = "co.company_type-customer";
  [5] = "co.address-customer";
  [6] = "co.post_code-customer";
  [7] = "co.post_office-customer";
  [8] = "co.country-customer";
  [9] = "co.json_data.vat_number-customer";
  [10] = "co.json_data.electronic_invoice_address-customer";
  [11] = "co.json_data.send_type-customer";
  [12] = "co.way_of_delivery-customer";
  [13] = "co.info-customer";
  [14] = "co.json_data.transfer_id-customer";
  [15] = "co.json_data.intermediator-customer";
  [16] = "co.create_time-customer";
  [17] = "co.json_data.last_modification_date-customer";
  [18] = "co.record_id-customer";
 };
 ["database"] = "plg4d";
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "date";
  [17] = "date";
  [18] = "string";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT co.company_id, co.name, co.company_number, co.type_, co.address, co.post_code, co.post_office, co.country, co.vat_number, co.electronic_invoice_address, co.send_type, co.way_of_delivery, co.info, co.transfer_id, co.swift_code, co.creation_date, co.last_modification_date, co.record_id\
 FROM company co\
 WHERE co.company_id LIKE '%'\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.company_number";
  [4] = "co.type_";
  [5] = "co.address";
  [6] = "co.post_code";
  [7] = "co.post_office";
  [8] = "co.country";
  [9] = "co.vat_number";
  [10] = "co.electronic_invoice_address";
  [11] = "co.send_type";
  [12] = "co.way_of_delivery";
  [13] = "co.info";
  [14] = "co.transfer_id";
  [15] = "co.swift_code";
  [16] = "co.creation_date";
  [17] = "co.last_modification_date";
  [18] = "co.record_id";
 };
 ["trace"] = false;
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.company_number-customer";
  [4] = "co.company_type-customer";
  [5] = "co.address-customer";
  [6] = "co.post_code-customer";
  [7] = "co.post_office-customer";
  [8] = "co.country-customer";
  [9] = "co.json_data.vat_number-customer";
  [10] = "co.json_data.electronic_invoice_address-customer";
  [11] = "co.json_data.send_type-customer";
  [12] = "co.way_of_delivery-customer";
  [13] = "co.info-customer";
  [14] = "co.json_data.transfer_id-customer";
  [15] = "co.json_data.intermediator-customer";
  [16] = "co.create_time-customer";
  [17] = "co.json_data.last_modification_date-customer";
  [18] = "co.record_id-customer";
 };
 ["table_prefix"] = "co";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "date";
  [17] = "date";
  [18] = "string";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.company_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'company_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.name-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'name-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.company_number-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'company_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.company_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'company_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.post_code-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'post_code-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.post_office-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'post_office-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.country-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'country-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.vat_number-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.vat_number-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.electronic_invoice_address-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.electronic_invoice_address-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.send_type-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.send_type-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.way_of_delivery-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'way_of_delivery-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.info-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'info-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.transfer_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.transfer_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.intermediator-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.intermediator-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.create_time-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'create_time-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.json_data.last_modification_date-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'json_data.last_modification_date-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'co.record_id-customer' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'record_id-customer' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

option - plg4d execute = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

option - plg4d array4dToArrayTable = {
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["trace"] = false;
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'record array' returnType - plg4d array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'COUNT(*)' tablePrefixField - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'nil' tablePrefix - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'COUNT(*)' name - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

'COUNT(*)' name2 - array4dToArrayTable. 	14.1.2022 	17:00:51 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	17:01:46 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

closing socket '86'. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

closing socket '87'. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          10
poll.fd_count:        1
pollCount:            5376
pollInCount:          12
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   9016
totalBytesSent:       23258. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 88
. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

closing socket '88'. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0129f0e780. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129f0e780, size: 400. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0129f0e780. 	14.1.2022 	17:01:46 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	17:01:46 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	17:01:49 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129f506d0, size: 400. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

--- server started in 0.0023 seconds, 2022-01-14 17:01:51, used memory 3119.0 kb --- 	 5. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	17:01:51 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 17:01:55
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 506
Content-Uncompressed-Length: 584

LZ4. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00106
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	14.1.2022 	17:01:55 	lx 	(5. palvelin)

option - plg4d execute = {
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "co.company_id-customer";
  [2] = "co.name-customer";
  [3] = "co.name_2-customer";
  [4] = "co.country-customer";
  [5] = "co.json_data.area-customer";
  [6] = "co.json_data.transfer_id-customer";
  [7] = "co.modify_id-customer";
  [8] = "co.text_address-customer";
  [9] = "co.company_number-customer";
  [10] = "co.json_data.default_sales_person_id-customer";
  [11] = "co.email-customer";
  [12] = "co.address-customer";
  [13] = "co.post_code-customer";
  [14] = "co.post_office-customer";
  [15] = "co.json_data.send_type-customer";
  [16] = "co.way_of_delivery-customer";
  [17] = "co.language-customer";
  [18] = "co.json_data.add_packing_cost-customer";
  [19] = "co.json_data.add_packing_material-customer";
  [20] = "co.info-customer";
  [21] = "co.create_time-customer";
  [22] = "co.record_id-customer";
  [23] = "co.json_data.last_modification_date-customer";
  [24] = "co.company_type-customer";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
  [16] = "string";
  [17] = "string";
  [18] = "integer";
  [19] = "integer";
  [20] = "string";
  [21] = "date";
  [22] = "string";
  [23] = "date";
  [24] = "integer";
 };
 ["sql"] = "SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
 ["table_prefix"] = "co";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	17:01:56 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field_type"] = {
  [1] = "integer";
 };
 ["sql"] = "SELECT COUNT(*) FROM company";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	17:01:56 	lx 	(5. palvelin)

option - plg4d execute = {
 ["database"] = "plg4d";
 ["local_field"] = {
  [1] = "ordr.order_id-sales";
  [2] = "ordr.row_number-sales";
  [3] = "ordr.production_lot-sales";
  [4] = "ord.company_id-sales";
  [5] = "ord.person_id-sales";
  [6] = "ordr.product_id-sales";
  [7] = "pr.work_number_id-product";
  [8] = "pr.product_group-product";
  [9] = "ordr.invoice_id-sales";
  [10] = "ordr.dispatch_note_id-sales";
  [11] = "ordr.delivery_state-sales";
  [12] = "ordr.waiting_for_delivery-sales";
  [13] = "ordr.delivery_date-sales";
  [14] = "ordr.confirmed_delivery_date-sales";
  [15] = "ordr.delivery_amount-sales";
  [16] = "ordr.order_amount-sales";
  [17] = "ordr.unit-sales";
  [18] = "ordr.actual_delivery_date-sales";
  [19] = "ordr.unit_price-sales";
  [20] = "ordr.discount_percent-sales";
  [21] = "ordr.price_without_vat-sales";
  [22] = "ordr.description-sales";
  [23] = "ordr.json_data.customer_project-sales";
  [24] = "ordr.json_data.additional_data-sales";
  [25] = "ordr.info-sales";
  [26] = "ordr.json_data.transfer_id-sales";
  [27] = "ordr.modify_id-sales";
  [28] = "ordr.record_id-sales";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "number";
  [13] = "date";
  [14] = "date";
  [15] = "number";
  [16] = "number";
  [17] = "string";
  [18] = "date";
  [19] = "number";
  [20] = "number";
  [21] = "number";
  [22] = "string";
  [23] = "string";
  [24] = "string";
  [25] = "string";
  [26] = "string";
  [27] = "string";
  [28] = "string";
 };
 ["sql"] = "SELECT sor.sales_order_id, sor.row_number, sor.production_lot, so.company_id, so.employee_id, sor.product_id, pr.work__position_num_id, pr.product_group, sor.invoice_id, sor.dispatch_note_id, sor.delivery_state, sor.waiting_for_delivery, sor.delivered_date, sor.confirmed_delivery_date, sor.delivered_quantity, sor.ordered_amount, sor.unit, sor.delivery_date, sor.price__unit, sor.discount_percentage, sor.sales_price_total, sor.explanation, sor.customer_project, sor.additional_data, sor.info, sor.transfer_id, sor.change_id, sor.record_id\
 FROM sales_order_row sor\
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id\
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id\
 WHERE sor.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "sor.sales_order_id";
  [2] = "sor.row_number";
  [3] = "sor.production_lot";
  [4] = "so.company_id";
  [5] = "so.employee_id";
  [6] = "sor.product_id";
  [7] = "pr.work__position_num_id";
  [8] = "pr.product_group";
  [9] = "sor.invoice_id";
  [10] = "sor.dispatch_note_id";
  [11] = "sor.delivery_state";
  [12] = "sor.waiting_for_delivery";
  [13] = "sor.delivered_date";
  [14] = "sor.confirmed_delivery_date";
  [15] = "sor.delivered_quantity";
  [16] = "sor.ordered_amount";
  [17] = "sor.unit";
  [18] = "sor.delivery_date";
  [19] = "sor.price__unit";
  [20] = "sor.discount_percentage";
  [21] = "sor.sales_price_total";
  [22] = "sor.explanation";
  [23] = "sor.customer_project";
  [24] = "sor.additional_data";
  [25] = "sor.info";
  [26] = "sor.transfer_id";
  [27] = "sor.change_id";
  [28] = "sor.record_id";
 };
 ["table_prefix"] = "ordr";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	17:02:05 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field_type"] = {
  [1] = "integer";
 };
 ["sql"] = "SELECT COUNT(*) FROM sales_order_row";
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["database"] = "plg4d";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	14.1.2022 	17:02:05 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	17:02:23 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

closing socket '87'. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

closing socket '88'. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          6
poll.fd_count:        1
pollCount:            2248
pollInCount:          7
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   6062
totalBytesSent:       27947. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 89
. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

closing socket '89'. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0129f506d0. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129f506d0, size: 400. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0129f506d0. 	14.1.2022 	17:02:23 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	17:02:23 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	17:02:26 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

  database connect time: 0.0004 seconds. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f034800, size: 400. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

--- server started in 0.0016 seconds, 2022-01-14 17:02:27, used memory 3124.2 kb --- 	 5. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	17:02:27 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 17:02:30
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 479
Content-Uncompressed-Length: 553

LZ4. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["database"] = "plg4d";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_sor.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00042
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_sor.json' OR name_id = '_tab_default.json'. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "sor.sales_order_id";
  [2] = "sor.row_number";
  [3] = "sor.production_lot";
  [4] = "so.company_id";
  [5] = "so.employee_id";
  [6] = "sor.product_id";
  [7] = "pr.work__position_num_id";
  [8] = "pr.product_group";
  [9] = "sor.invoice_id";
  [10] = "sor.dispatch_note_id";
  [11] = "sor.delivery_state";
  [12] = "sor.waiting_for_delivery";
  [13] = "sor.delivered_date";
  [14] = "sor.confirmed_delivery_date";
  [15] = "sor.delivered_quantity";
  [16] = "sor.ordered_amount";
  [17] = "sor.unit";
  [18] = "sor.delivery_date";
  [19] = "sor.price__unit";
  [20] = "sor.discount_percentage";
  [21] = "sor.sales_price_total";
  [22] = "sor.explanation";
  [23] = "sor.customer_project";
  [24] = "sor.additional_data";
  [25] = "sor.info";
  [26] = "sor.transfer_id";
  [27] = "sor.change_id";
  [28] = "sor.record_id";
 };
 ["local_field"] = {
  [1] = "ordr.order_id-sales";
  [2] = "ordr.row_number-sales";
  [3] = "ordr.production_lot-sales";
  [4] = "ord.company_id-sales";
  [5] = "ord.person_id-sales";
  [6] = "ordr.product_id-sales";
  [7] = "pr.work_number_id";
  [8] = "pr.product_group";
  [9] = "ordr.invoice_id-sales";
  [10] = "ordr.dispatch_note_id-sales";
  [11] = "ordr.delivery_state-sales";
  [12] = "ordr.waiting_for_delivery-sales";
  [13] = "ordr.delivery_date-sales";
  [14] = "ordr.confirmed_delivery_date-sales";
  [15] = "ordr.delivery_amount-sales";
  [16] = "ordr.order_amount-sales";
  [17] = "ordr.unit-sales";
  [18] = "ordr.actual_delivery_date-sales";
  [19] = "ordr.unit_price-sales";
  [20] = "ordr.discount_percent-sales";
  [21] = "ordr.price_without_vat-sales";
  [22] = "ordr.description-sales";
  [23] = "ordr.json_data.customer_project-sales";
  [24] = "ordr.json_data.additional_data-sales";
  [25] = "ordr.info-sales";
  [26] = "ordr.json_data.transfer_id-sales";
  [27] = "ordr.modify_id-sales";
  [28] = "ordr.record_id-sales";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "number";
  [13] = "date";
  [14] = "date";
  [15] = "number";
  [16] = "number";
  [17] = "string";
  [18] = "date";
  [19] = "number";
  [20] = "number";
  [21] = "number";
  [22] = "string";
  [23] = "string";
  [24] = "string";
  [25] = "string";
  [26] = "string";
  [27] = "string";
  [28] = "string";
 };
 ["database"] = "plg4d";
 ["sql"] = "SELECT sor.sales_order_id, sor.row_number, sor.production_lot, so.company_id, so.employee_id, sor.product_id, pr.work__position_num_id, pr.product_group, sor.invoice_id, sor.dispatch_note_id, sor.delivery_state, sor.waiting_for_delivery, sor.delivered_date, sor.confirmed_delivery_date, sor.delivered_quantity, sor.ordered_amount, sor.unit, sor.delivery_date, sor.price__unit, sor.discount_percentage, sor.sales_price_total, sor.explanation, sor.customer_project, sor.additional_data, sor.info, sor.transfer_id, sor.change_id, sor.record_id\
 FROM sales_order_row sor\
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id\
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id\
 WHERE sor.record_id IS NULL";
 ["table_prefix"] = "ordr";
};. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "COUNT(*)";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["database"] = "plg4d";
 ["sql"] = "SELECT COUNT(*) FROM sales_order_row";
 ["field_type"] = {
  [1] = "integer";
 };
};. 	14.1.2022 	17:02:30 	lx 	(5. palvelin)

option - plg4d execute = {
 ["field"] = {
  [1] = "sor.sales_order_id";
  [2] = "sor.row_number";
  [3] = "sor.production_lot";
  [4] = "so.company_id";
  [5] = "so.employee_id";
  [6] = "sor.product_id";
  [7] = "pr.work__position_num_id";
  [8] = "pr.product_group";
  [9] = "sor.invoice_id";
  [10] = "sor.dispatch_note_id";
  [11] = "sor.delivery_state";
  [12] = "sor.waiting_for_delivery";
  [13] = "sor.delivered_date";
  [14] = "sor.confirmed_delivery_date";
  [15] = "sor.delivered_quantity";
  [16] = "sor.ordered_amount";
  [17] = "sor.unit";
  [18] = "sor.delivery_date";
  [19] = "sor.price__unit";
  [20] = "sor.discount_percentage";
  [21] = "sor.sales_price_total";
  [22] = "sor.explanation";
  [23] = "sor.customer_project";
  [24] = "sor.additional_data";
  [25] = "sor.info";
  [26] = "sor.transfer_id";
  [27] = "sor.change_id";
  [28] = "sor.record_id";
 };
 ["local_field"] = {
  [1] = "ordr.order_id-sales";
  [2] = "ordr.row_number-sales";
  [3] = "ordr.production_lot-sales";
  [4] = "ord.company_id-sales";
  [5] = "ord.person_id-sales";
  [6] = "ordr.product_id-sales";
  [7] = "pr.work_number_id";
  [8] = "pr.product_group";
  [9] = "ordr.invoice_id-sales";
  [10] = "ordr.dispatch_note_id-sales";
  [11] = "ordr.delivery_state-sales";
  [12] = "ordr.waiting_for_delivery-sales";
  [13] = "ordr.delivery_date-sales";
  [14] = "ordr.confirmed_delivery_date-sales";
  [15] = "ordr.delivery_amount-sales";
  [16] = "ordr.order_amount-sales";
  [17] = "ordr.unit-sales";
  [18] = "ordr.actual_delivery_date-sales";
  [19] = "ordr.unit_price-sales";
  [20] = "ordr.discount_percent-sales";
  [21] = "ordr.price_without_vat-sales";
  [22] = "ordr.description-sales";
  [23] = "ordr.json_data.customer_project-sales";
  [24] = "ordr.json_data.additional_data-sales";
  [25] = "ordr.info-sales";
  [26] = "ordr.json_data.transfer_id-sales";
  [27] = "ordr.modify_id-sales";
  [28] = "ordr.record_id-sales";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "string";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "number";
  [13] = "date";
  [14] = "date";
  [15] = "number";
  [16] = "number";
  [17] = "string";
  [18] = "date";
  [19] = "number";
  [20] = "number";
  [21] = "number";
  [22] = "string";
  [23] = "string";
  [24] = "string";
  [25] = "string";
  [26] = "string";
  [27] = "string";
  [28] = "string";
 };
 ["database"] = "plg4d";
 ["sql"] = "SELECT sor.sales_order_id, sor.row_number, sor.production_lot, so.company_id, so.employee_id, sor.product_id, pr.work__position_num_id, pr.product_group, sor.invoice_id, sor.dispatch_note_id, sor.delivery_state, sor.waiting_for_delivery, sor.delivered_date, sor.confirmed_delivery_date, sor.delivered_quantity, sor.ordered_amount, sor.unit, sor.delivery_date, sor.price__unit, sor.discount_percentage, sor.sales_price_total, sor.explanation, sor.customer_project, sor.additional_data, sor.info, sor.transfer_id, sor.change_id, sor.record_id\
 FROM sales_order_row sor\
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id\
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id\
 WHERE sor.record_id IS NOT NULL\
 LIMIT 2000";
 ["table_prefix"] = "ordr";
};. 	14.1.2022 	17:02:35 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	14.1.2022 	17:02:56 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

closing socket '88'. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

closing socket '89'. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          5
poll.fd_count:        2
pollCount:            1984
pollInCount:          7
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   5535
totalBytesSent:       21309. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 91
. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

closing socket '91'. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 90
. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

closing socket '90'. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x014f034800. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014f034800, size: 400. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x014f034800. 	14.1.2022 	17:02:56 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	14.1.2022 	17:02:56 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	14.1.2022 	17:03:20 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0142f860d0, size: 400. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

All plugins have been loaded. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

--- server started in 0.0021 seconds, 2022-01-14 17:03:21, used memory 3119.7 kb --- 	 5. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.1.2022 	17:03:21 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-14 17:03:28
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 971
Content-Uncompressed-Length: 1804

LZ4. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

 1. answer time: 00:00:00.00126
  
SELECT co.company_id, co.name, co.company_number, co.type_, co.address, co.post_code, co.post_office, co.country, co.vat_number, co.electronic_invoice_address, co.send_type, co.way_of_delivery, co.info, co.transfer_id, co.swift_code, co.creation_date, co.last_modification_date, co.record_id
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	14.1.2022 	17:03:28 	lx 	(5. palvelin)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lDefaultInputOpenState. 	14.1.2022 	17:03:59 	_prf_ Qry_OLD 	(6. tbl_ 7)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lUuidInInfoShow. 	14.1.2022 	17:03:59 	_prf_ Qry_OLD 	(6. tbl_ 7)

Ei voi hakea taulusta Asetus, asetuksen nimi <>af_lLoadOnActivate. 	14.1.2022 	17:03:59 	_prf_ Qry_OLD 	(6. tbl_ 7)

4D: SELECT sor.record_id FROM sales_order_row sor WHERE sor.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT sor.sales_order_id, sor.row_number, sor.production_lot, so.company_id, so.employee_id, sor.product_id, pr.work__position_num_id, pr.product_group, sor.invoice_id, sor.dispatch_note_id, sor.delivery_state, sor.waiting_for_delivery, sor.delivered_date, sor.confirmed_delivery_date, sor.delivered_quantity, sor.ordered_amount, sor.unit, sor.delivery_date, sor.price__unit, sor.discount_percentage, sor.sales_price_total, sor.explanation, sor.customer_project, sor.additional_data, sor.info, sor.transfer_id, sor.change_id, sor.record_id FROM sales_order_row sor  LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id  LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id  WHERE sor.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_arExe1,:_lx_adExe1,:_lx_adExe2,:_lx_arExe2,:_lx_arExe3,:_lx_atExe11,:_lx_adExe3,:_lx_arExe4,:_lx_arExe5,:_lx_arExe6,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_atExe18
 - result _lx_atExe1 size: 134, first value: '110334'
 - query name: new:form/core/nc-list-form/query.json. 	14.1.2022 	17:04:04 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe4,:_lx_atExe5
 - result _lx_atExe1 size: 122, first value: '101302 F'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.1.2022 	17:04:41 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

closing socket '89'. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

*** tcp close for sock 90, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

closing socket '90'. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          7
poll.fd_count:        2
pollCount:            6560
pollInCount:          9
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   8818
totalBytesSent:       75178. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 92
. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

closing socket '92'. 	14.1.2022 	17:04:51 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 91
. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

closing socket '91'. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0142f860d0. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0142f860d0, size: 400. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

--- server stopped ---. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0142f860d0. 	14.1.2022 	17:04:52 	lx 	(5. palvelin)

